package com.iss.apartmentmanage.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@ApiModel("员工管理信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_info")
public class UserInfo {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String uinfoName;
    private String uinfoGender;
    private String uinfoIdcard;
    private String uinfoPhone;
    private String uinfoEmail;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Integer userinfoId;
    @TableLogic
    private Integer deleted;
    private Integer isUsed;
    private Integer belongAreaId;

    public UserInfo(String uinfoName, String uinfoGender, String uinfoIdcard, String uinfoPhone, String uinfoEmail, Integer userinfoId) {
        this.uinfoName = uinfoName;
        this.uinfoGender = uinfoGender;
        this.uinfoIdcard = uinfoIdcard;
        this.uinfoPhone = uinfoPhone;
        this.uinfoEmail = uinfoEmail;
        this.userinfoId = userinfoId;
    }


}
